package com.example.que;


public class Main {
    public static void main(String[] args) {

        NoneThreadSafeQueue<String> queue = new NoneThreadSafeQueue<>();
        queue.addLast("1");
        queue.addLast("2");
        queue.addLast("3");

//        System.out.println("queue.removeFirst() = " + queue.removeFirst());
//        queue.addLast("4");
//        System.out.println("queue.removeFirst() = " + queue.removeFirst());
//        System.out.println("queue.removeFirst() = " + queue.removeFirst());
//        queue.addLast("5");
//        System.out.println("queue.removeFirst() = " + queue.removeFirst());
//        System.out.println("queue.removeFirst() = " + queue.removeFirst());
//        System.out.println("queue.removeFirst() = " + queue.removeFirst());

        for (int i = 0; i < queue.getSize(); i++) {
            System.out.println("queue.getIndex(i) = " + queue.getIndex(i));
        }
    }
}
